(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <exec/lists.h>
#include <proto/exec.h>
void Insert()
SYNOPSIS
struct List * list
struct Node * node
struct Node * pred

LOCATION
In SysBase at offset 39
FUNCTION
Insert Node node after pred in list.

INPUTS
list
The list to insert the node into
node
This node is to be inserted
pred
Insert after this node. If this is NULL, node is inserted as the first node (same as AddHead()).
RESULT
NOTES
EXAMPLE
struct List * list;
struct Node * pred, * node;

// Insert Node node as second node in list
pred = GetHead (list);
Insert (list, node, pred);

BUGS
SEE ALSO
AddHead(), AddTail(), Enqueue(), RemHead(), Remove(), RemTail(), "AROS: Exec Lists".
INTERNALS
HISTORY
30.04.1997 aros
Optimized header files

Polish

11.02.1997 digulla
Fixed long standing bug when nodes are Insert()ed at the end of the list
03.01.1997 digulla
Polish
01.01.1997 ldp
Committed Amiga native (support) code

Changed clib to proto

10.12.1996 aros
Moved all #include's in the first column so makedepend can see it.
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
21.10.1996 aros
Changed struct SysBase to struct ExecBase
13.08.1996 digulla
Replaced __AROS_LA by __AROS_LHA Replaced some __AROS_LH*I by __AROS_LH* Sorted and added includes
01.08.1996 digulla
Added standard header for all files
01.08.1996 digulla
Added copyright notics and made headers conform
01.08.1996 digulla
Replaced hacks with commented versions
28.07.1996 digulla
Initial revision
28.07.1996 digulla
First CVS version of AROS